package com.graduate.after.bean;

import java.util.Random;

public class CategoryInfo {

    private Integer id;

    private String name;

    private Integer categoryLevel;

    private Integer parentId;

    public CategoryInfo() {
    }

    public CategoryInfo(Integer id, String name, Integer categoryLevel, Integer parentId) {
        this.id = id;
        this.name = name;
        this.categoryLevel = categoryLevel;
        this.parentId = parentId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCategoryLevel() {
        return categoryLevel;
    }

    public void setCategoryLevel(Integer categoryLevel) {
        this.categoryLevel = categoryLevel;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "CategoryInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", categoryLevel=" + categoryLevel +
                ", parentId=" + parentId +
                '}';
    }

    public static void main(String[] args) {

        Random random = new Random();
        for (int i = 0; i < 214; i++) {
            int i1 = random.nextInt(15);
            i1 += 15;
            double ii = (double)i1;
            ii = ii/100;
            System.out.println(ii);
        }
    }
}
